package com.boliq.lol.adapter;

import com.boliq.lol.R;
import com.boliq.lol.bean.NewsChessBean;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import org.jetbrains.annotations.NotNull;

public class NewsChessAdapter extends BaseQuickAdapter<NewsChessBean, BaseViewHolder> {
    public NewsChessAdapter() {
        super(R.layout.item_news_chess);
    }
    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, NewsChessBean newsChessBean) {
        baseViewHolder.setText(R.id.tv_article_title,newsChessBean.getTitle());
        baseViewHolder.setImageResource(R.id.img_cover,newsChessBean.getImag());
        baseViewHolder.setText(R.id.tv_tag,newsChessBean.getTag());
        baseViewHolder.setText(R.id.tv_article_user,newsChessBean.getUser());
        baseViewHolder.setText(R.id.tv_view_number,newsChessBean.getHot());
    }
}
